cmake_minimum_required(VERSION 2.8)

set(KMS_FILTERS_IMPL_HEADERS
  implementation/objects/OpenCVProcess.hpp
)

include(CodeGenerator)
generate_code(
  MODELS ${CMAKE_CURRENT_SOURCE_DIR}/interface
  SERVER_IMPL_LIB_EXTRA_HEADERS ${KMS_FILTERS_IMPL_HEADERS}
  SERVER_IMPL_LIB_EXTRA_INCLUDE_DIRS ${opencv_INCLUDE_DIRS}
  SERVER_IMPL_LIB_EXTRA_LIBRARIES ${opencv_LIBRARIES}
  SERVER_STUB_DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/implementation/objects
  SERVER_IMPL_LIB_PKGCONFIG_EXTRA_REQUIRES "opencv"
  SERVER_IMPL_LIB_FIND_CMAKE_EXTRA_LIBRARIES "opencv"
)
